package com.huqingshan.LenMore.controller.api;

import cn.dev33.satoken.stp.StpUtil;
import cn.dev33.satoken.util.SaResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminController {

    @PostMapping(value="/login")
    @ApiOperation("用户登陆")
    public SaResult login(){
        //仅做测试使用
        StpUtil.login("Admin");
        return SaResult.ok("登陆成功");
    }

    @PostMapping(value="/logout")
    @ApiOperation("用户登出")
    public void logout(){

    }

}
